///
/// ArmyBodger 3
/// (c)2010 richyp
///
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ArmyBodger.Core;

namespace ArmyBodger.UI {
    /// <summary>
    /// Form that displays loaded Game Systems
    /// </summary>
    public partial class BodgerGameSystemsForm : Form {
        /// <summary>
        /// Default Constructor
        /// </summary>
        public BodgerGameSystemsForm() {
            InitializeComponent();
        }

        public void UpdateTable(GameSystemCollection systems) {
            this.gameSystemBindingSource.DataSource = systems;
            this.dataGridViewGameSystems.AutoResizeRows(DataGridViewAutoSizeRowsMode.DisplayedCells);
        }
    }
}
